// 配置文件 - 集中管理所有配置
export const CONFIG = {
  // 文件扫描配置
  FILE_SCANNER: {
    CACHE_TIMEOUT: 30000, // 30秒缓存
    TEXTURE_PATH: '/textures',
    MODEL_PATH: '/models',
    SUPPORTED_TEXTURE_FORMATS: ['.jpg', '.jpeg', '.png', '.webp', '.svg', '.bmp', '.gif'],
    SUPPORTED_MODEL_FORMATS: ['.gltf', '.glb', '.obj', '.fbx', '.dae', '.ply', '.stl']
  },
  
  // 渲染配置
  RENDERER: {
    SHADOW_MAP_SIZE: 2048,
    ANTIALIAS: true,
    ALPHA: true
  },
  
  // 默认材质参数
  DEFAULT_MATERIAL: {
    color: 0x00ff00,
    metalness: 0.5,
    roughness: 0.5,
    opacity: 1.0,
    transparent: false,
    wireframe: false
  },
  
  // 默认光照参数
  DEFAULT_LIGHTING: {
    ambientIntensity: 0.4,
    directionalIntensity: 1.0,
    directionalPosition: { x: 5, y: 5, z: 5 }
  }
}

// 错误消息常量
export const ERROR_MESSAGES = {
  TEXTURE_LOAD_FAILED: '纹理加载失败',
  MODEL_LOAD_FAILED: '模型加载失败',
  FILE_SCAN_FAILED: '文件扫描失败',
  UNSUPPORTED_FORMAT: '不支持的文件格式'
}

// 事件名称常量
export const EVENTS = {
  FILE_UPLOADED: 'file-uploaded',
  SCAN_COMPLETED: 'scan-completed',
  MATERIAL_UPDATED: 'material-updated'
}